package com.snpic.appaw.module.third.api.bjpt;

import com.fhs.core.trans.anno.AutoTrans;
import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.third.api.bjpt.dto.CarModelInfoInquiryReqTotalDto;
import com.snpic.appaw.module.third.api.bjpt.dto.CarModelInfoInquiryRespTotalDto;
import com.snpic.appaw.module.third.api.bjpt.dto.QueryHisPolicyDetailReqTotalDto;
import com.snpic.appaw.module.third.api.bjpt.dto.QueryHisPolicyDetailRespTotalDto;
import com.snpic.appaw.module.third.api.bjpt.dto.iSPolicyQuery.ISPolicyQueryDetailResDTO;
import com.snpic.appaw.module.third.api.bjpt.dto.iSPolicyQuery.ISPolicyQueryMainRequest;
import com.snpic.appaw.module.third.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import static com.snpic.appaw.module.third.api.sms.SmsSenderApi.PREFIX;

/**
 * @author JiJun
 * @date 2025/9/16 16:53
 * @修改时间 2025/9/16 16:53
 * @description 报价平台API
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 天安报价平台")
@AutoTrans(namespace = PREFIX, fields = {"nickname"})
public interface BJPTApi {
		String PREFIX = ApiConstants.PREFIX + "/bjpt";

	/**
	 * 车辆车型查询接口
	 */
	@PostMapping(PREFIX + "/carModelInfoInquiry")
	@Operation(summary = "车辆车型查询接口")
	public CommonResult<CarModelInfoInquiryRespTotalDto> carModelInfoInquiry(@RequestBody @Valid CarModelInfoInquiryReqTotalDto reqDTO);

	/**
	 * 历史保单查询接口
	 * @param reqDTO
	 * @return
	 */
	@PostMapping(PREFIX + "/queryHisPolicyDetail")
	@Operation(summary = "历史保单查询接口")
	public CommonResult<QueryHisPolicyDetailRespTotalDto> queryHisPolicyDetail(@RequestBody @Valid QueryHisPolicyDetailReqTotalDto reqDTO);



}
